﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ItemCloth.aspx.cs" Inherits="AlbonWeb.Order.ItemCloth" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Select Cloth</title>
    <script src="../js/ADS.js" type="text/javascript"></script>
    <script src="../js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Dealer>>New Order</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr>
                <td class="content_title">
                    Item Cloth
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td class="td_list_title">
                    <span class="list_title">Item Name: </span>
                    <asp:Label ID="itemName" class="lbInfo" runat="server" Text='<%=Request["itemid"].ToString()%>'></asp:Label>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td>
                    <!--Style list which need to buy cloth-->
                    <asp:Repeater ID="repItemCloth" runat="server">
                        <HeaderTemplate>
                            <table width="90%" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                                class="tb_list">
                                <tr class="tr_list_head">
                                    <td>
                                        StyleName
                                    </td>
                                    <td>
                                        Size
                                    </td>
                                    <td>
                                        Cloth Status
                                    </td>
                                    <td>
                                        Load
                                    </td>
                                    <td>
                                        CoName
                                    </td>
                                    <td>
                                        No.
                                    </td>
                                    <td>
                                        Width
                                    </td>
                                    <td>
                                        Price
                                    </td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="tr_list_content">
                                <td>
                                    <%#Eval("styleName")%>
                                </td>
                                <td>
                                    <%#Eval("clothSize") %>
                                </td>
                                <td>
                                  <span title='<%#Eval("statusRemark") %>'><%#Eval("statusName") %></span>
                                </td>
                                <td>
                                    <!--只有NoStatus和OOS状态下的布料才可以重新选择布料-->
                                    <asp:ImageButton ToolTip='<%#Eval("ID")%>' ID="imgBtn" runat="server" OnClick="imgbtn_Click"
                                        ImageUrl='<%#((Eval("statusID").ToString() == "1") || (Eval("statusID").ToString() == "4"))?"/images/grv_edit.gif":"/images/grv_edit_gray.gif"%>'
                                         Enabled='<%#((Eval("statusID").ToString() == "1") || (Eval("statusID").ToString() == "4"))?true:false%>' />
                                </td>
                                <td>
                                    <%#Eval("companyName")%>
                                </td>
                                <td>
                                    <%#Eval("clothNo") %>
                                </td>
                                <td>
                                    <%#Eval("widthKind")%>
                                </td>
                                <td>
                                    <%#Eval("clothPrice") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <!--Style list which need to buy cloth-->
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td width="30%" align="left">
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td align="right">
                    Qty:<asp:DropDownList ID="ddlQty" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="isFT" runat="server" Text="FT" />
                    <asp:Button class="btnNext" ID="btnNextA" runat="server" Text="Next" OnClick="btnNextA_Click" />
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td>
                    <div class="cloth_info">
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UpdatePanel1" Visible="false" runat="server">
                            <ContentTemplate>
                                <div>
                                    <asp:Label ID="lbmessage" runat="server" Text=""></asp:Label></div>
                                <asp:HiddenField ID="clothid" runat="server" />
                                <div>
                                    Style Name:<asp:Label ID="styleName" class="lbInfo" runat="server"></asp:Label></div>
                                    <div>
                                      Cloth Size:  <asp:TextBox ID="clothSize" runat="server"></asp:TextBox> 
                                    </div>
                                <div>
                                    Cloth Company:<asp:DropDownList ID="ddlCoName" runat="server" AutoPostBack="True"
                                        OnTextChanged="ddlCoName_TextChanged">
                                    </asp:DropDownList>
                                    &nbsp;&nbsp;&nbsp;&nbsp; Cloth No:
                                    <asp:DropDownList ID="ddlClothNo" runat="server" AutoPostBack="True" OnTextChanged="ddlClothNo_TextChanged">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    Width:<asp:Label ID="lbWidth" class="list_title" runat="server" Text="Label"></asp:Label>
                                    Price:<asp:Label ID="lbPrice" runat="server" class="list_title" Text="Label"></asp:Label>
                                </div>
                                <div>
                                    Color:<asp:Label ID="lbColor" class="lbInfo" runat="server" Text="Label"></asp:Label>
                                    Quality:<asp:Label ID="lbQuality" class="lbInfo" runat="server" Text="Label"></asp:Label>
                                </div>
                                <div style="text-align: center">
                                    <asp:Button ID="selectBtn" runat="server" Text="Select" OnClick="selectBtn_Click" /></div>
                            </ContentTemplate>
                            <Triggers>
                                <asp:PostBackTrigger ControlID="selectBtn" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </div>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td align="center">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
